package com.edu.entity;

/*
 * 商品类
 */
public class Goods {
	private int goodid;
	private String goodname;
	private double goodprice;
	//原价↓
	private double oriprive;
	//商品类型↓
	private int goodtype = 0;
	private int goodnum = 0;
	//商品描述↓
	private String gooddec;
	private String goodimg;
	//商品状态（几成新）↓
	private int goodstat = 0;
	//商品运费类型↓
	private int goodFreightType = 0;
	//商品交易类型↓
	private int goodTradetType = 0;
	//商家id↓
	private int sellerId = 0;
	//商品上架状态↓
	private int goodOnSellStat = 0;
	private String brand;
	
	public String getBrand() {
		return brand;
	}
	public void setBrand(String brand) {
		this.brand = brand;
	}
	public int getGoodid() {
		return goodid;
	}
	public void setGoodid(int goodid) {
		this.goodid = goodid;
	}
	public String getGoodname() {
		return goodname;
	}
	public void setGoodname(String goodname) {
		this.goodname = goodname;
	}
	public double getGoodprice() {
		return goodprice;
	}
	public void setGoodprice(double goodprice) {
		this.goodprice = goodprice;
	}
	public double getOriprive() {
		return oriprive;
	}
	public void setOriprive(double oriprive) {
		this.oriprive = oriprive;
	}
	
	public int getGoodtype() {
		return goodtype;
	}
	public void setGoodtype(int goodtype) {
		this.goodtype = goodtype;
	}
	public int getGoodnum() {
		return goodnum;
	}
	public void setGoodnum(int goodnum) {
		this.goodnum = goodnum;
	}
	public String getGooddec() {
		return gooddec;
	}
	public void setGooddec(String gooddec) {
		this.gooddec = gooddec;
	}
	public String getGoodimg() {
		return goodimg;
	}
	public void setGoodimg(String goodimg) {
		this.goodimg = goodimg;
	}
	public int getGoodstat() {
		return goodstat;
	}
	public void setGoodstat(int goodstat) {
		this.goodstat = goodstat;
	}
	public int getGoodFreightType() {
		return goodFreightType;
	}
	public void setGoodFreightType(int goodFreightType) {
		this.goodFreightType = goodFreightType;
	}
	public int getGoodTradetType() {
		return goodTradetType;
	}
	public void setGoodTradetType(int goodTradetType) {
		this.goodTradetType = goodTradetType;
	}
	public int getSellerId() {
		return sellerId;
	}
	public void setSellerId(int sellerId) {
		this.sellerId = sellerId;
	}
	public int getGoodOnSellStat() {
		return goodOnSellStat;
	}
	public void setGoodOnSellStat(int goodOnSellStat) {
		this.goodOnSellStat = goodOnSellStat;
	}
	
	public Goods(int goodid, String goodname, double goodprice, double oriprive, int goodtype, int goodnum,
			String gooddec, String goodimg, int goodstat, int goodFreightType, int goodTradetType, int sellerId,
			int goodOnSellStat) {
		super();
		this.goodid = goodid;
		this.goodname = goodname;
		this.goodprice = goodprice;
		this.oriprive = oriprive;
		this.goodtype = goodtype;
		this.goodnum = goodnum;
		this.gooddec = gooddec;
		this.goodimg = goodimg;
		this.goodstat = goodstat;
		this.goodFreightType = goodFreightType;
		this.goodTradetType = goodTradetType;
		this.sellerId = sellerId;
		this.goodOnSellStat = goodOnSellStat;
	}
	public Goods() {
		super();
	}
	@Override
	public String toString() {
		return "Goods [goodid=" + goodid + ", goodname=" + goodname + ", goodprice=" + goodprice + ", oriprive="
				+ oriprive + ", goodtype=" + goodtype + ", goodnum=" + goodnum + ", gooddec=" + gooddec + ", goodimg="
				+ goodimg + ", goodstat=" + goodstat + ", goodFreightType=" + goodFreightType + ", goodTradetType="
				+ goodTradetType + ", sellerId=" + sellerId + ", goodOnSellStat=" + goodOnSellStat + "]";
	}
	
}
